import React, { useContext } from "react";
import {LeftOutlined} from '@ant-design/icons';
import { globalContext, } from "@/service/globalState";

const Header: React.FC = () => {
    const globalData = useContext(globalContext);

    return (
        <div className="header">
            <a className="goback" onClick={() => { window.history.back() }} ><LeftOutlined /></a>
            <div className="header-title">
                {globalData.pageTitle}
            </div>
        </div>
    )
}
export default Header;
